//
//  GJRichButton.h
//  YDGJ
//
//  Created by 黄卫 on 17/2/24.
//  Copyright © 2017年 huangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum : NSUInteger
{
    GJButonLabelNone,                   //默认系统布局
    GJButonLabelLeft,                   //标签居左：水平布局
    GJButonLabelRight,                  //标签居右：水平布局
    GJButonLabelTop,                    //标签居上：垂直布局
    GJButonLabelBottm,                  //标签居下：垂直布局
} GJButonSubViewLayout;


@interface GJRichButton : UIButton
/**
 spacing:标签与图片间距
 layout:子View布局方式
 */
+(instancetype)richBtnWithFrmae:(CGRect)frame titleBtn:(NSString *)title titleFontNumber:(CGFloat)fontSize normalImageName:(NSString *)norName selectedImageName:(NSString *)selecName viewSpacing:(CGFloat)spacing subViewLayout:(GJButonSubViewLayout)layout handClickBlock:(void(^)(UIButton *btn))clickblcok;

@end
